//Grab the message type and our constants
includes Custom;
includes Constants;

//Implement a basemote program
configuration BaseMote {
}
implementation {
  components Main, BaseMoteM,
             LedsC,
			 TimerC,
			 GenericComm as Comm;

  Main.StdControl -> BaseMoteM.StdControl;
  Main.StdControl -> TimerC;
  
  BaseMoteM.Leds -> LedsC;
  BaseMoteM.CommControl -> Comm;
  BaseMoteM.Timer -> TimerC.Timer[unique("Timer")];
  BaseMoteM.Recv -> Comm.ReceiveMsg[AM_CUSTOMMSG];
  BaseMoteM.Send -> Comm.SendMsg[AM_CUSTOMMSG];

}
